import { _decorator, Component, Node } from 'cc';
import AppStateBlock from './StateBlock/AppStateBlock';
import UIManager from './utils/UIFramework/UIManager';
import DataManager from './utils/DataSystem/DataManager';
import EntityManager from './utils/EntitySystem/EntityManager';
const { ccclass, property } = _decorator;

@ccclass('AppStart')
export class AppStart extends Component {

    app : AppStateBlock = new AppStateBlock();

    protected onLoad(): void {
        this._initAll();
        this.app.Start();
    }

    private _initAll()
    {
        UIManager.Instance.Init();
        DataManager.Instance.Init();
        EntityManager.Instance.Init();
    }
}


